package com.itheima.example;

import java.io.*;

public class Example08 {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferReader = new BufferedReader(new FileReader("read.txt"));
        BufferedWriter bufferWriter = new BufferedWriter(new FileWriter("dest.txt"));
        String s = null;
        while ((s = bufferReader.readLine()) != null) {
            bufferWriter.write(s);
            bufferWriter.newLine();
        }
        bufferReader.close();
        bufferWriter.close();
    }
}
